ngl: Add sonme comments
authorMatthias Clasen <mclasen@redhat.com>
Wed, 31 Mar 2021 18:32:47 +0000 (14:32 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 31 Mar 2021 18:32:47 +0000 (14:32 -0400)
The GskNglRenderOffscreen struct is a mix of in and
out arguments. Better annotate that a little bit.

gsk/ngl/gsknglrenderjob.c

index 5dfd78b5c8198408302301bffce61d4c8b546b31..93b06c38f6f94ca815d86d21a812ebf74973049c 100644 (file)
@@ -163,18 +163,29 @@ struct _GskNglRenderJob
 
 typedef struct _GskNglRenderOffscreen
 {
+  /* The bounds to render */
   const graphene_rect_t *bounds;
+
+  /* Return location for texture coordinates */
   struct {
     float x;
     float y;
     float x2;
     float y2;
   } area;
+
+  /* Return location for texture ID */
   guint texture_id;
+
+  /* Whether to force creating a new texture, even if the
+   * input already is a texture
+   */
   guint force_offscreen : 1;
   guint reset_clip : 1;
   guint do_not_cache : 1;
   guint linear_filter : 1;
+
+  /* Return location for whether we created a texture */
   guint was_offscreen : 1;
 } GskNglRenderOffscreen;